package net.oschina.app.testscripts.examples.login;

import net.oschina.app.BasicTestCase;

/**
 * Created by Aaron on 2017/10/29.
 */

public class LoginStautsCheck extends BasicTestCase {

    public void testName() throws Exception {
        helper.getPageCommon().goToMySettingsTab();

        helper.getPageMySettings().clickMyMsgItem();
        check();

        helper.getPageMySettings().clickMyBlogItem();
        check();

        helper.getPageMySettings().clickMyActivityItem();
        check();

        helper.getPageMySettings().clickMyTeamItem();
        check();

    }

    public void check(){
        assertTrue("没有打开登录界面",helper.getPageLogin().isLoginScreenOpened());
        helper.getPageCommon().goBack();
    }
}
